package com.imooc.course.business.controller.album;

import com.imooc.course.business.controller.admin.CourseController;
import com.imooc.course.server.dto.ResponseDto;
import com.imooc.course.server.service.TeacherService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/album/teachers")
public class AlbumTeacherController {

    private static final Logger log = LoggerFactory.getLogger(CourseController.class);
    public static final String BUSINESS_NAME = "Album Teachers";


    @Resource(name = "teacherService")
    private TeacherService teacherService;

    /**
     * 查询全部课程
     * @return
     */
    @PostMapping("/all")
    public ResponseDto getAll() {
        return ResponseDto.success().setContent(teacherService.getAll());
    }

}
